﻿<UserControl x:Class="IBTrader.Frontend.Log.Errors"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:con="http://schemas.kent.boogaart.com/converters">
    <TextBlock Background="LightCoral" Text="{Binding Errors}" Padding="5">
        <TextBlock.Visibility>
            <Binding Path="Errors">
                <Binding.Converter>
                    <con:MapConverter>
                        <con:Mapping From="{x:Null}" To="{x:Static Visibility.Collapsed}"/>
                    </con:MapConverter>
                </Binding.Converter>
            </Binding>
        </TextBlock.Visibility>
    </TextBlock>
</UserControl>
